<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="<?php bloginfo('template_directory');?>/js/jquery.js"></script> 
<script type="text/javascript" src="<?php bloginfo('template_directory');?>/js/jquery.nivo.slider.pack.js"></script>
<?php  define('ABSPATH', dirname(__FILE__) . '/') ?>

<?php  	
  function languageChange($languageName){
  
  	$baseUrl= "HTTP://". $_SERVER['HTTP_HOST'] . $_SERVER["REQUEST_URI"];
     if(strstr($baseUrl,'locale')){
     	$baseUrl= str_replace('?locale=en_US','?1=1',$baseUrl);
     	$baseUrl= str_replace('?locale=zh_CN','?1=1',$baseUrl);
     	$baseUrl= str_replace('&locale=en_US','',$baseUrl);
     	$baseUrl= str_replace('&locale=zh_CN','',$baseUrl);
       
     }
     if(strstr($baseUrl,'?'))	$baseUrl = $baseUrl.'&locale='.$languageName.'';
	 else 	$baseUrl = $baseUrl.'?locale='.$languageName.'';     
     
	 if ( !empty($menuUrl) )unset($_SESSION[ 'locale']); 
	 
      $_SESSION['locale']=$languageName;
  
  	return $baseUrl;
  }
  
 function menuUrl($menuUrl){
    $astrr =   explode("/",$_SERVER["REQUEST_URI"]);
 	$baseUrl = "HTTP://". $_SERVER['HTTP_HOST'] ."/" .$astrr[1]."/";

 	if ( !empty($menuUrl) ){
 		$baseUrl .= "wp-content/themes/devster/". $menuUrl;
 	}

 	$localeName = 'zh_CN';
 	if(!empty($_REQUEST['locale']))
 	{
 		$localeName = $_REQUEST['locale'];
 	}

 	$_SESSION['locale'] = $localeName;
 	$baseUrl .='?locale=' . $localeName;
 	print $baseUrl;
 	return $baseUrl;
 } 
?>

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>"  />
<title><?php if (is_home () ) { bloginfo('name'); echo " - "; bloginfo('description'); 
} elseif (is_category() ) {single_cat_title(); echo " - "; bloginfo('name');
} elseif (is_single() || is_page() ) {single_post_title(); echo " - "; bloginfo('name');
} elseif (is_search() ) {bloginfo('name'); echo " search results: "; echo wp_specialchars($s);
} else { wp_title('',true); }?></title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<meta name="robots" content="follow, all" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>

<!-- ////////////////////////////////// -->
<!-- //      Javascript Files        // -->
<!-- ////////////////////////////////// -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory');?>/js/cufon-yui.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory');?>/js/Grandesign_Neue_Serif_400.font.js"></script>
<!--<script type="text/javascript">-->
<!--    Cufon.replace('h1') ('h2') ('h3') ('h4',{hover:true}) ('#nav li') ('#nav li a');-->
<!--</script>   -->

<script type="text/javascript">
  function navigationOver (menuName){
	var obj = document.getElementById(menuName);	
	obj.style.display="block";
	
  }
  
  function navigationout (menuName){
	var obj = document.getElementById(menuName);
	obj.style.display="none";
  }

  function switchType(value,type){
    hiddenTypeDiv(value);
    document.getElementById(type).style.display="block";
  }

  function hiddenTypeDiv(value){
 	 	// if("1"== value){
 	 		  document.getElementById("apply").style.display="none";
 	 		  //document.getElementById("productType").style.display="none";
 	 		  document.getElementById("weldMethod").style.display="none";
 	 	// }else if("2"==value){
 	 		document.getElementById("type1").style.display="none";
	 		document.getElementById("type2").style.display="none";
	 		document.getElementById("type3").style.display="none";
		//}
 	}
 </script>
</head>
<body>

<div align="left" style="background-color:black">

    <table style="width:100%">
      <tr>
     	<td style="color:white;font-size:20px;">&nbsp;&nbsp;	<?php echo __('company name','devster')?></td>
      </tr>
    </table>
    </br>
    <div id="top">
		<?php include ('header_menu.php');?>
    </div>
</div>
  
	<!-- MAIN_CONTAINER -->
	<div id="main_container">

        <!-- FRAME -->
		<div id="frame">
            
          <?php 
          if (is_home()) 
          {
          	include dirname(__FILE__).'/include/slider/slider.php';
          }
          ?>
                                                            
                     <!-- BEGIN CONTENT -->
                     <div id="content">